<head>
	<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" charset="utf-8">
		$(document).ready(function(){
			if (window.location.hash.match("noajax")) return;
			$("#mainform").submit(function(event){
				var keyvals = {};
				$("input[type!=submit]", "#mainform").each(function(i,el){
					el = $(el);
					keyvals[el.attr("name")] = el.val();
				})
				$.post($(this).attr("action"), keyvals, function(response){
					$("#response").html(response);
				})
				return false;
			})
		})
	</script>
</head>
<body>
	<form id="mainform" method="POST" action="server.py">
		<table>
			<tbody>
				<tr>
					<td>Your name</td><td><input type="text" name="name"/></td>
				</tr>
				<tr>
					<td>E-mail</td><td><input type="text" name="email"/></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="send form"/></td>
				</tr>
			</tbody>
		</table>
	</form>
	<div>
		Response:
		<div id="response"></div>
	</div>
</body>